<?php

defined('BASEPATH') OR exit('No direct script access allowed');

$route['default_controller'] = 'index';
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;

$route['logout'] = 'user/logout';
$route['login'] = 'user/login';
$route['passwd'] = 'user/passwd';
$route['profile'] = 'user/profile';

$route['place'] = 'index/place';
$route['place/(:any)'] = 'index/place';
$route['get-district'] = 'index/getDistrict';

//$route['place']             = 'index/place';
//$route['place/(:any)']      = 'index/place';
//$route['get-district']      = 'index/getDistrict';

$route['user'] = 'user/index';
$route['user/(:any)'] = 'user/index';
$route['update-status'] = 'index/updatestatus';
$route['warning'] = 'index/warning';
$route['checkupdate'] = 'index/checkupdate';
$route['checkupdate-ver2'] = 'index/checkupdatever2';
$route['checkreset'] = 'index/checkreset';


$route['report'] = 'index/getReport';

$route['index-get-district'] = 'index/indexgetdistrict';
$route['index-list-district'] = 'index/indexlistdistrict';

$route['device-detail'] = 'index/devicedetail';
$route['device-detail/(:num)'] = 'index/devicedetail';

$route['ajax-update-comment'] = 'index/ajaxupdatecomment';

$route['group'] = 'group/index';

$route['device(.*?)'] = 'device/index';
$route['add-device'] = 'device/adddevice';
$route['edit-device'] = 'device/editdevice';
$route['get-form-edit-device'] = 'device/getformeditdevice';

$route['get-statistic-device-ajax'] = 'device/getStatisticDeviceAjax';
$route['reset-device-ajax'] = 'device/resetdeviceajax';
$route['add-note-device-ajax'] = 'device/addnotedeviceajax';
$route['get-history-device-ajax'] = 'device/gethistorydeviceajax';

$route['delete-device'] = 'device/deletedevice';


$route['get-province-device-member'] = 'customer/getprovincedevicemember';
$route['get-district-device-member'] = 'customer/getdistrictdevicemember';
$route['get-place-device-member'] = 'customer/getaddressdevicemember';
$route['get-list-device-place-member'] = 'customer/getlistdeviceaddressmember';

$route['sendport'] = 'device/sendport';

$route['customer'] = 'customer/index';
$route['customer/(:any)'] = 'customer/index';
$route['customer-detail'] = 'customer/detail';
$route['customer-list'] = 'customer/listcustomer';
$route['customer-list/(:any)'] = 'customer/listcustomer';
$route['save-name-device'] = 'customer/savenamedevice';

$route['denny-allow-customer-device'] = 'customer/dennyallowcustomerdevice';


$route['list-denny-member'] = 'customer/listdennymember';
$route['list-allow-member'] = 'customer/listallowmember';


$route['get-map'] = 'device/getmap';


$route['group']         = 'group/index';
$route['group/(:num)']  = 'group/index';
$route['group-detail']  = 'group/groupdetail';
$route['delete-group']  = 'group/deletegroup';

$route['address']             = 'address/index';
$route['address/(:any)']      = 'address/index';
$route['address-detail']      = 'address/addressdetail';

$route['delete-address']      = 'address/deleteaddress';

$route['delete-address']      = 'address/deleteaddress';

$route['get-district']      = 'address/getdistrict';

/*
* void admin system
*/
$route['admin-system'] = 'admins/indexadminsystem';
$route['delete-admin-system'] = 'admins/deleteadminsystem';
$route['detail-admin-system'] = 'admins/detailadminsystem';

/*
* void admin group
*/
$route['admin-group'] = 'admins/indexadmingroup';
$route['delete-admin-group'] = 'admins/deleteadmingroup';
$route['detail-admin-group'] = 'admins/detailadmingroup';

/*
* void admin device
*/
$route['admin-device'] = 'admins/indexadmindevice';
$route['delete-admin-device'] = 'admins/deleteadmindevice';
$route['detail-admin-device'] = 'admins/detailadmindevice';
$route['get-list-device'] = 'admins/getlistdevice';

$route['reset-admin-device'] = 'admins/resetformad';
$route['reset-admin-group'] = 'admins/resetformgroup';

//báo cáo
$route['report']         = 'report/index';
$route['report/list-device']         = 'report/listDevice';
$route['device-report']         = 'report/deviceReport';

